package com.swf.seed.os.execute;

import java.util.Scanner;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class RecycleExecute {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("springContext-os.xml");
		Scanner scanner = new Scanner(System.in);
		while (true){
			System.out.print(">>");
			String commandLine = scanner.nextLine();
			if ("quit".equalsIgnoreCase(commandLine)){
				break;
			}
			new Execute().doit(ac,new String[]{commandLine});
		}
		ac.close();
	}
}
